-- GENERATED SPELL FOR [Anub'ar Crypt Fiend] --


function spell0_29118(pUnit, Event) --@Crushing Webs,n/a--
pUnit:FullCastSpellOnTarget(53322,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29118', 6500, 1)
end

function spell1_29118(pUnit, Event) --@Crushing Webs,n/a--
pUnit:FullCastSpellOnTarget(59347,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29118', 6500, 1)
end

function spell2_29118(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(53330,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29118', 20277, 1)
end

function spell3_29118(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(59348,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29118', 20349, 1)
end

function Sorts_29118(pUnit, Event)
local choix_sorts_29118 = math.random(0, 3)
if choix_sorts_29118 == 0 then
pUnit:RegisterEvent('spell0_29118', 1, 1)
end
if choix_sorts_29118 == 1 then
pUnit:RegisterEvent('spell1_29118', 1, 1)
end
if choix_sorts_29118 == 2 then
pUnit:RegisterEvent('spell2_29118', 1, 1)
end
if choix_sorts_29118 == 3 then
pUnit:RegisterEvent('spell3_29118', 1, 1)
end
end

function mob29118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29118', math.random(1500, 3000), 1)
end

function mob29118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29118, 1, 'mob29118_Action')
RegisterUnitEvent(29118, 2, 'mob29118_Leave')
RegisterUnitEvent(29118, 3, 'mob29118_Kill')
RegisterUnitEvent(29118, 4, 'mob29118_Die')
